from django.urls import path
from manager.views import index_view, rating_view, good_view, goods_view, user_view
from common import common_view

app_name = 'manager'
urlpatterns = [
    path('usercenter/', index_view.usercenter, name='我的'),
    path('upload/', common_view.upload_file, name='上传'),

    path('user_manage/', user_view.user_manage, name='用户管理'),
    path('user_data/', user_view.user_data, name='用户数据'),
    path('user_add/', user_view.user_add, name='用户add'),
    path('user_edit/', user_view.user_edit, name='用户edit'),
    path('user_del/', user_view.user_delete, name='用户del'),

    path('goods_manage/', goods_view.goods_manage, name='商品管理'),
    path('goods_data/', goods_view.goods_data, name='商品数据'),
    path('goods_add/', goods_view.goods_add, name='商品add'),
    path('goods_edit/', goods_view.goods_edit, name='商品edit'),
    path('goods_del/', goods_view.goods_delete, name='商品del'),
    path('goods_collect/', goods_view.goods_collect, name='商品爬取'),

    path('good_manage/', good_view.good_manage, name='购物商品管理'),
    path('good_manage_data/', good_view.good_data, name='购物商品数据'),
    path('good_manage_add/', good_view.good_add, name='购物商品add'),
    path('good_manage_edit/', good_view.good_edit, name='购物商品edit'),
    path('good_manage_del/', good_view.good_delete, name='购物商品del'),

    path('rating_manage/', rating_view.rating_manage, name='评分管理'),
    path('good_rating_data/', rating_view.rating_data, name='评分数据'),
    path('good_rating_add/', rating_view.rating_add, name='评分add'),
    path('good_rating_edit/', rating_view.rating_edit, name='评分edit'),
    path('good_rating_del/', rating_view.rating_delete, name='评分del'),

]
